package com.atguigu.spzx.manager.mapper;

import com.atguigu.spzx.model.dto.product.CategoryExcelDto;
import com.atguigu.spzx.model.entity.product.Category;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface CategoryMapper {
    List<Category> findByPid(Long pid);

    Boolean hasChildren(Long id);

    Boolean isExist(CategoryExcelDto categoryExcelDto);

    void batchSave(List<CategoryExcelDto> list);

    List<CategoryExcelDto> findAll();

}
